package com.feign.feignClient.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * 自定义拦截器，能够对发送请求前进行封装处理
 */
public class MyInterceptor implements RequestInterceptor {

	@Override
	public void apply(RequestTemplate template) {
		template.header("Content-Type", "application/json");
	}
}
